!{include file='common/iheader.htm'}
<div id="left_tree">
	<dl>
		<dt>图片文件管理</dt>
		<dd class="selected"><a href="/manager.php?app=file&act=files" target="show_frame">全部图片</a></dd>
		!{foreach from=$image_cates item=ic}
		<dd><a href="/manager.php?app=file&act=files&cate=!{$ic._id}" target="show_frame">!{$ic.name}</a></dd>
		!{/foreach}
		<dd><a href="/manager.php?app=file&act=cate&cate=image" target="show_frame">分类管理</a></dd>
	</dl>
	<dl>
		<dt>视频文件管理</dt>
		<dd><a href="/manager.php?app=file&act=files&type=video" target="show_frame">全部视频</a></dd>
		!{foreach from=$video_cates item=vc}
		<dd><a href="/manager.php?app=file&act=files&type=video&cate=!{$vc._id}" target="show_frame">!{$vc.name}</a></dd>
		!{/foreach}
		<dd><a href="/manager.php?app=file&act=cate&type=video&cate=video" target="show_frame">分类管理</a></dd>
	</dl>
	<dl>
		<dt>网站文件管理</dt>
		<dd><a href="/manager.php?app=file&act=template" target="show_frame">网站模板管理</a></dd>
		<dd><a href="javascript:void(0)" target="show_frame">网站样式管理</a></dd>
		<dd><a href="javascript:void(0)" target="show_frame">网站资源文件管理</a></dd>
	</dl>
</div>
<div id="opt_div">
	<iframe frameborder="0" border="0" class="box_iframe" src="/manager.php?app=file&act=files" name="show_frame" id="show_frame"></iframe>
	<!--  
	<a href="javascript:void(0)">全选</a>
	<a href="javascript:void(0)">反选</a>
	<a href="javascript:void(0)">删除</a>
	<a href="javascript:void(0)">移动</a>
	<a href="javascript:void(0)">复制路径</a>
	<a href="javascript:void(0)">复制链接</a>
	-->
</div>
<script type="text/javascript">
$(function(){
	$("#left_tree dd a").click(function(){
		$('#left_tree .selected').removeClass('selected');
		$(this).parents('dd').addClass('selected');
	});
});

function reset_frame(){
	var iframe_height = 0;
	if(top.document.getElementById("iframe_file") == null){
		iframe_height = $(window).height();
	}else{
		iframe_height = parseInt(top.document.getElementById("iframe_file").style.height);
	}
	var iframe_width = $("#opt_div").width();
	$('.box_iframe').css({width:iframe_width, height:iframe_height});
	$('#left_tree').height(iframe_height);
}
window.onresize = reset_frame;
reset_frame();
</script>
!{include file='common/ifooter.htm'}